filterIsInstance

inline fun <T> filterIsInstance(): Either<L, T>?

Returns the same Right casted to type T if it is T. Otherwise returns null.

Return

The same Right casted to type T if it is T. Otherwise returns null.

Since

1.3

Parameters

T

Required type of the optional value.